<%-- 
    Document   : workspace
    Created on : Jan 7, 2012, 3:34:51 PM
    Author     : TrieuNX
--%>
<%@include file="prelude.jsp" %>
<div id="main">
    <%@include file="header.jsp" %>
    <div id="middle" >
        <%@include file="leftmenu.jsp" %>
        <div id="center-column">
            <div class="top-bar">
                <a href="/adduser.htm" class="button">ADD NEW </a>
                <h1>Contents</h1>
                <div class="breadcrumbs"><a href="#">Administrator</a> / <a href="#">Manage User</a></div>
            </div><br />
            <div class="select-bar">
                <label>
                    <%--  <s:select name="search" list="searchList" listKey="id" listValue="value" />--%>
                    <input type="text" />
                </label>
                <label>
                    <input type="submit" name="Submit" value="Search" />
                </label>
            </div>
            <div class="table">
                <img src="../img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                <img src="../img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                <table class="listing" cellpadding="0" cellspacing="0">
                    <tr>

                        <th>UserName</th>
                        <th>Full Name</th>
                        <th>Email</th>
                        <th>Role</th>
                        <th>Active</th>
                        <th>Suspense</th>
                        <th>Last login</th>
                        <th>Edit</th>
                        <th class="last">Delete</th>
                    </tr>
                    <c:if test="${requestScope['admins'] != null}">
                        <c:forEach items="${requestScope['admins']}" var="user">

                            <tr >
                                
                                <td style="text-align: center">${user.username}</td>
                                <td style="text-align: center">${user.firstName}&nbsp; ${user.lastName}</td>
                                <td style="text-align: center">${user.email}</td>
                                <td style="text-align: center">${user.role}</td>
                                <td style="text-align: center">${user.active}</td>
                                <td style="text-align: center">${user.suspended}</td>
                                <td style="text-align: center">${user.lastLogin}</td>
                                
                                <td><img src="../img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
                                <td class="last"><img src="../img/hr.gif" width="16" height="16" alt="delete" /></td>
                            </tr>
                        </c:forEach>
                    </c:if>


                </table>
                <div class="select">
                    <strong>Other Pages: </strong>
                    <select>
                        <option>1</option>
                    </select>
                </div>
            </div>


        </div>
    </div>
    <%@include file="footer.jsp" %>
</div>